<template>
    <div>
        <h1 ref="h1">hhh</h1>
        <button @click="showDom">点击我</button>
        <School ref="sch"></School>
    </div>
</template>

<script>
import School from './components/School.vue';
export default {
    name: "App",
    //汇总所有的组件
    components: {
        School
    },
    data(){
        return{
            msg:"1111"
        }
    },
    methods:{
        showDom(){
            console.log("@@",this.$refs);
        }
    }
}
</script>